﻿using Resume.Model;

namespace Resume.IRepository;

public interface IFieldSetting_Repository
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="FieldSettingDict"></param>
    /// <returns></returns>
    int Add(FieldSettingDict FieldSettingDict);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="FieldSettingDict"></param>
    /// <returns></returns>
    int Del(FieldSettingDict FieldSettingDict);

    /// <summary>
    /// 改
    /// </summary>
    /// <param name="FieldSettingDict"></param>
    /// <returns></returns>
    int Edit(FieldSettingDict FieldSettingDict);

    /// <summary>
    /// 查
    /// </summary>
    /// <returns></returns>
    List<FieldSettingDict> Get(int id);

    /// <summary>
    /// 查
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    FieldSettingDict GetSinge(int id);

    /// <summary>
    /// 条件查询
    /// </summary>
    /// <param name="name">姓名</param>
    /// <param name="isAsc">是否正序</param>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页大小</param>
    /// <returns></returns>
    Page<FieldSettingDict> GetPageData(string name, bool isAsc, int pageIndex, int pageSize);
}
